package com.fang.common.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Fang Ruichuan
 * @date 2022-09-07 21:14
 */
@Data
@Builder
@ApiModel(value = "更新菜单入参")
public class SysMenuUpdateParam implements Serializable {

    @ApiModelProperty(value = "菜单编号")
    private Long id;

    @ApiModelProperty(value = "父级菜单")
    private Long parentId;

    @ApiModelProperty(value = "菜单URL")
    private String path;

    @ApiModelProperty(value = "授权")
    private String perms;

    @ApiModelProperty(value = "组件")
    private String component;

    @ApiModelProperty(value = "类型, 0-目录，1-菜单，2-按钮")
    private Integer type;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    private Integer orderNum;
}
